﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartCity.Passport.Domain.Entities
{
    /// <summary>
    /// 权限
    /// </summary>
    public class Permission
    {
        [Key]
        /// <summary>
        /// 权限编号
        /// </summary>
        public int PermissionId { get; set; }
        /// <summary>
        /// 权限分类（菜单、页面、按钮、数据）
        /// </summary>
        public string PermissionTypeId {  get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName { get; set; }
        /// <summary>
        /// 权限级别（1：一级 2： 二级 3：三级）
        /// </summary>
        public int PermissionLevel { get; set; }
        /// <summary>
        /// 权限的值
        /// </summary>
        public string PermissionValue { get; set; }
        /// <summary>
        /// 权限的路径
        /// </summary>
        public string PermissionPath { get; set; }
        /// <summary>
        /// 上下级关系
        /// </summary>
        public int ParentId {  get; set; }
    }
}
